#include "skled.h"
#include <stdio.h>

int main(int argc, char **argv)
{
    struct skled *sk = NULL;
    int ret = 0;

    ret = skled_create(&sk, SK9816, 3, "/dev/spidev32766");
    if (ret < 0) {
        printf("skled_create failed\n");
        return -1; 
    }

    ret = skled_set_rgb(sk, 0, 128, 128, 128);
    if (ret < 0) {
        printf("skled set rgb fail\n");
    }

    skled_destroy(sk);
    return 0;
}
